package com.CMS.client;

import java.util.List;

import com.CMS.server.domain.Menu;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("menu")
public interface MenuService extends RemoteService{
	
	public Menu getMenu();
	
	public void create(Menu m);
	
	public void updateMenu(Menu m);
	
	public List<Menu> fetch();
	
	public void delete(long id);
	
	public Menu update(long id,boolean flagDelete,String description);
	
	public void create(String description);
	
	public Menu getMenu(long idMenu);
}
